#ifndef _MYSTDIO_H__
#define _MYSTDIO_H__ 

#include<string.h>
#include<unistd.h>
#include<stdio.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<fcntl.h>
#include<stdlib.h>


#define SIZE 1024      //"C语言缓冲区大小"
#define FLUSH_NOW 1    //立即刷新
#define FLUSH_LINE 2   //行刷新
#define FLUSH_ALL 4    //全刷新


typedef struct _FILE{
    int fileno;
    int flag;
    char outbuffer[SIZE];  //"C语言的文件缓冲区"
    int outpos; 

}_FILE;

_FILE* _fopen(const char*path,const char* mode);
int _fwrite(const void*ptr,int size,_FILE* fp);
int _fclose(_FILE* fp);
int _fflush(_FILE* fp);




















#endif 
